package com.xw.entity;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Description: Icon实体类
 * @Author: ASUS
 * @Date: 2024/12/19 9:17
 * @Version: 1.0
 */


@Data
public class Icon implements Serializable {
    private static final long serialVersionUID = -14872042010365355L;
    private Integer id;
    @ApiModelProperty(value = "内容")
    private String value;

    /**
    *
    * @TableName news
    */
    public static class News implements Serializable {

        /**
        *
        */
        @NotNull(message="[]不能为空")
        @ApiModelProperty("")
        private Long id;
        /**
        *
        */
        @NotBlank(message="[]不能为空")
        @Size(max= 255,message="编码长度不能超过255")
        @ApiModelProperty("")
        @Length(max= 255,message="编码长度不能超过255")
        private String title;
        /**
        *
        */
        @NotBlank(message="[]不能为空")
        //@Size(max= -1,message="编码长度不能超过-1")
        @ApiModelProperty("")
        //@Length(max= -1,message="编码长度不能超过-1")
        private String content;
        /**
        *
        */
        @NotNull(message="[]不能为空")
        @ApiModelProperty("")
        private Date createdAt;

        /**
        *
        */
        private void setId(Long id){
        this.id = id;
        }

        /**
        *
        */
        private void setTitle(String title){
        this.title = title;
        }

        /**
        *
        */
        private void setContent(String content){
        this.content = content;
        }

        /**
        *
        */
        private void setCreatedAt(Date createdAt){
        this.createdAt = createdAt;
        }


        /**
        *
        */
        private Long getId(){
        return this.id;
        }

        /**
        *
        */
        private String getTitle(){
        return this.title;
        }

        /**
        *
        */
        private String getContent(){
        return this.content;
        }

        /**
        *
        */
        private Date getCreatedAt(){
        return this.createdAt;
        }

    }
}

